package jmu.edu.yjc.repository;

import jmu.edu.yjc.domain.entity.neo4j.NodeEntity.Disease;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.ExistsQuery;
import org.springframework.data.neo4j.repository.query.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DisableRepository extends Neo4jRepository<Disease, Long> {
    Disease findFirstByName(@Param("name") String name);
    Boolean existsByName(@Param("name") String name);
}
